projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03ee422
)
debug: When debug-printing, treat NULL as the default display
author
Benjamin Otte
<otte@redhat.com>
Wed, 19 Feb 2020 00:20:19 +0000
(
01:20
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 19 Feb 2020 00:21:33 +0000
(
01:21
+0100)
Otherwise we lose debug prints from all code that allows NULL displays.
gtk/gtkmain.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmain.c
b/gtk/gtkmain.c
index 631c308e2df0416cbff46ad0ca56a025cd598bb3..394cd04232090fbe865bc14677561b3fbadd942f 100644
(file)
--- a/
gtk/gtkmain.c
+++ b/
gtk/gtkmain.c
@@
-687,6
+687,9
@@
gtk_get_display_debug_flags (GdkDisplay *display)
{
gint i;
+ if (display == NULL)
+ display = gdk_display_get_default ();
+
for (i = 0; i < N_DEBUG_DISPLAYS; i++)
{
if (debug_flags[i].display == display)